<?php

namespace App\Home\Models;

use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Support\Str;

class WorshipBibleChapter extends Model
{
    use SoftDeletes;

    protected $guarded = []; 

public $fieldTypes = <<< EOF
{
    "id": "string",
    "volume_id": "string",
    "chapter_id": "string",
    "verse_id": "string",
    "lection": "string",
    "sound_begin": "string",
    "sound_end": "string",
    "created_at": "string",
    "updated_at": "string",
    "deleted_at": "string"
}
EOF;   

    public function __construct(){
        parent::__construct();
        $this->mergeCasts(json_decode($this->fieldTypes, true));
    }
}
